package ceha.application;

import ceha.util.OkCancelDialog;
import ceha.util.OkDialog;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.RollbackException;
import javax.swing.JFileChooser;
import javax.swing.JInternalFrame;

public class CEHAFicheCreation extends javax.swing.JFrame {
    private final CEHAMain main;
    private final CEHAData cehadata;

  

    CEHAFicheCreation(CEHAMain main, CEHAData data) {
         this.main=main;
         this.cehadata=data;
        initComponents();
    }

    public JInternalFrame getFicheAcreerJIF() {
        return ficheAcreerJIF;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        list = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(query.getResultList());
        query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery("SELECT f FROM Fiche f");
        entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory("BDDCEHAPU").createEntityManager();
        desktop = new javax.swing.JDesktopPane();
        ficheAcreerJIF = new javax.swing.JInternalFrame();
        Formulaire = new javax.swing.JPanel();
        imagefilenameLabel1 = new javax.swing.JLabel();
        sourceLabel1 = new javax.swing.JLabel();
        titreLabel1 = new javax.swing.JLabel();
        auteurLabel1 = new javax.swing.JLabel();
        dateLabel1 = new javax.swing.JLabel();
        resumeLabel1 = new javax.swing.JLabel();
        lienvignette1 = new javax.swing.JTextField();
        auteurField1 = new javax.swing.JTextField();
        lienimageField1 = new javax.swing.JTextField();
        lienfichierField = new javax.swing.JTextField();
        parcourirvignette = new javax.swing.JButton();
        CadreVignette1 = new javax.swing.JPanel();
        vignette1 = new javax.swing.JLabel();
        sourcecombo1 = new javax.swing.JComboBox();
        typedocumentLabel2 = new javax.swing.JLabel();
        typedocCombo1 = new javax.swing.JComboBox();
        jDateChooser3 = new com.toedter.calendar.JDateChooser();
        datetexteLabel2 = new javax.swing.JLabel();
        siecleCombo1 = new javax.swing.JComboBox();
        jScrollPane3 = new javax.swing.JScrollPane();
        resumeArea1 = new javax.swing.JTextArea();
        pacouririmageButton1 = new javax.swing.JButton();
        parcourirfichierButton2 = new javax.swing.JButton();
        historicpanel1 = new javax.swing.JPanel();
        dimensionLabel1 = new javax.swing.JLabel();
        localisationLabel1 = new javax.swing.JLabel();
        droitsreproLabel1 = new javax.swing.JLabel();
        datedonationLabel1 = new javax.swing.JLabel();
        fondLabel1 = new javax.swing.JLabel();
        fondField1 = new javax.swing.JTextField();
        localisationField1 = new javax.swing.JTextField();
        dimensionField1 = new javax.swing.JTextField();
        jDateChooser4 = new com.toedter.calendar.JDateChooser();
        droitsreproCombo1 = new javax.swing.JComboBox();
        lienfichierLabel1 = new javax.swing.JLabel();
        lienimageLabel1 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        titreField1 = new javax.swing.JTextArea();
        Commandes = new javax.swing.JPanel();
        newButton1 = new javax.swing.JButton();
        deleteButton1 = new javax.swing.JButton();
        adminpanel = new javax.swing.JPanel();
        datecorrectionLabel = new javax.swing.JLabel();
        idcorrecteurLabel = new javax.swing.JLabel();
        idcorrecteurField = new javax.swing.JTextField();
        validerfiche = new javax.swing.JButton();
        jDateChooser5 = new com.toedter.calendar.JDateChooser();
        saveButton1 = new javax.swing.JButton();
        menubar1 = new javax.swing.JMenuBar();
        mainmenu = new javax.swing.JMenu();
        quitte = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        desktop.setForeground(new java.awt.Color(255, 255, 255));
        desktop.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        ficheAcreerJIF.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        ficheAcreerJIF.setIconifiable(true);
        ficheAcreerJIF.setOpaque(true);
        ficheAcreerJIF.setVerifyInputWhenFocusTarget(false);
        ficheAcreerJIF.setVisible(true);

        Formulaire.setBackground(new java.awt.Color(51, 51, 51));

        imagefilenameLabel1.setBackground(new java.awt.Color(153, 153, 153));
        imagefilenameLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        imagefilenameLabel1.setForeground(new java.awt.Color(255, 255, 255));
        imagefilenameLabel1.setText("Vignette");

        sourceLabel1.setBackground(new java.awt.Color(153, 153, 153));
        sourceLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        sourceLabel1.setForeground(new java.awt.Color(255, 255, 255));
        sourceLabel1.setText("Source");

        titreLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        titreLabel1.setForeground(new java.awt.Color(255, 255, 255));
        titreLabel1.setText("Titre*");

        auteurLabel1.setBackground(new java.awt.Color(153, 153, 153));
        auteurLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        auteurLabel1.setForeground(new java.awt.Color(255, 255, 255));
        auteurLabel1.setText("Auteur");

        dateLabel1.setBackground(new java.awt.Color(153, 153, 153));
        dateLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        dateLabel1.setForeground(new java.awt.Color(255, 255, 255));
        dateLabel1.setText("Date ");

        resumeLabel1.setBackground(new java.awt.Color(153, 153, 153));
        resumeLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        resumeLabel1.setForeground(new java.awt.Color(255, 255, 255));
        resumeLabel1.setText("Resumé");

        lienvignette1.setFont(new java.awt.Font("Tahoma", 0, 12));

        auteurField1.setFont(new java.awt.Font("Times New Roman", 1, 14));

        lienimageField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        lienfichierField.setFont(new java.awt.Font("Tahoma", 0, 12));

        parcourirvignette.setFont(new java.awt.Font("Times New Roman", 3, 14));
        parcourirvignette.setText("parcourir");
        parcourirvignette.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                parcourirvignetteparcourirVignetteAction(evt);
            }
        });

        CadreVignette1.setBackground(new java.awt.Color(204, 204, 204));
        CadreVignette1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        vignette1.setBackground(new java.awt.Color(255, 255, 255));
        vignette1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/fondlogoCEHA.jpg"))); // NOI18N
        vignette1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BELOW_TOP, new java.awt.Font("Verdana", 3, 12), new java.awt.Color(0, 0, 0))); // NOI18N

        javax.swing.GroupLayout CadreVignette1Layout = new javax.swing.GroupLayout(CadreVignette1);
        CadreVignette1.setLayout(CadreVignette1Layout);
        CadreVignette1Layout.setHorizontalGroup(
            CadreVignette1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CadreVignette1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(vignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        CadreVignette1Layout.setVerticalGroup(
            CadreVignette1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CadreVignette1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(vignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        sourcecombo1.setFont(new java.awt.Font("Verdana", 1, 12));
        sourcecombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Original", "Copie" }));

        typedocumentLabel2.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        typedocumentLabel2.setForeground(new java.awt.Color(255, 255, 255));
        typedocumentLabel2.setText("Type de document");

        typedocCombo1.setFont(new java.awt.Font("Verdana", 1, 12));
        typedocCombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Affiche", "Album thématique", "Carte postale", "Imprimé", "Journal", "Livre", "Magazine / Revue", "Manuscrit papier", "Manuscrit Vélin", "Matériel archéologique", "Numismatique", "Objet", "Photographie", "Plan", "Tableau / Gravure", "Tapuscrit", "Témoignage audio", "Témoignage vidéo", "Autres" }));

        jDateChooser3.setDateFormatString("DD MM YYYY");
        jDateChooser3.setFont(new java.awt.Font("Verdana", 1, 12));

        datetexteLabel2.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        datetexteLabel2.setForeground(new java.awt.Color(255, 255, 255));
        datetexteLabel2.setText("Date (autres)");

        siecleCombo1.setFont(new java.awt.Font("Verdana", 1, 12));
        siecleCombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "XXème", "XIXème", "XVIIIème", "XVIIème" }));

        resumeArea1.setBackground(new java.awt.Color(255, 255, 204));
        resumeArea1.setColumns(20);
        resumeArea1.setFont(new java.awt.Font("Times New Roman", 1, 12));
        resumeArea1.setLineWrap(true);
        resumeArea1.setRows(5);
        resumeArea1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
        resumeArea1.setDragEnabled(true);
        jScrollPane3.setViewportView(resumeArea1);

        pacouririmageButton1.setFont(new java.awt.Font("Times New Roman", 3, 14));
        pacouririmageButton1.setText("parcourir");
        pacouririmageButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacouririmageButton1parcourirLienFichierButton(evt);
            }
        });

        parcourirfichierButton2.setFont(new java.awt.Font("Times New Roman", 3, 14));
        parcourirfichierButton2.setText("parcourir");
        parcourirfichierButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                parcourirfichierButton2parcourirLienImageButton(evt);
            }
        });

        historicpanel1.setBackground(new java.awt.Color(153, 153, 153));
        historicpanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 204, 0), 2, true), "historique du document", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 3, 14), new java.awt.Color(255, 255, 0))); // NOI18N

        dimensionLabel1.setFont(new java.awt.Font("Lucida Sans", 1, 14));
        dimensionLabel1.setText("Dimension");

        localisationLabel1.setFont(new java.awt.Font("Lucida Sans", 1, 14));
        localisationLabel1.setText("Localisation");

        droitsreproLabel1.setFont(new java.awt.Font("Lucida Sans", 1, 14));
        droitsreproLabel1.setText("Droits de reproduction");

        datedonationLabel1.setFont(new java.awt.Font("Lucida Sans", 1, 14));
        datedonationLabel1.setText("Date de donation");

        fondLabel1.setFont(new java.awt.Font("Lucida Sans", 1, 14));
        fondLabel1.setText("Fond");

        fondField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        localisationField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        dimensionField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        jDateChooser4.setDateFormatString("DD MM YYYY");

        droitsreproCombo1.setFont(new java.awt.Font("Verdana", 1, 12));
        droitsreproCombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Fonds propres CEHA (droits réservés)", "Dépôt (avec droits accordés au CEHA)", "Fonds extérieurs (demander autorisation)", "Inconnu (ne pas publier)" }));

        javax.swing.GroupLayout historicpanel1Layout = new javax.swing.GroupLayout(historicpanel1);
        historicpanel1.setLayout(historicpanel1Layout);
        historicpanel1Layout.setHorizontalGroup(
            historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(historicpanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(historicpanel1Layout.createSequentialGroup()
                        .addComponent(droitsreproLabel1)
                        .addGap(18, 18, 18)
                        .addComponent(droitsreproCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 328, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(historicpanel1Layout.createSequentialGroup()
                        .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(historicpanel1Layout.createSequentialGroup()
                                .addComponent(fondLabel1)
                                .addGap(63, 63, 63)
                                .addComponent(fondField1, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(datedonationLabel1))
                            .addGroup(historicpanel1Layout.createSequentialGroup()
                                .addComponent(localisationLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(localisationField1, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(dimensionLabel1)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jDateChooser4, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dimensionField1, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE))))
                .addContainerGap())
        );
        historicpanel1Layout.setVerticalGroup(
            historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(historicpanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(fondLabel1)
                        .addComponent(fondField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(datedonationLabel1))
                    .addComponent(jDateChooser4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(droitsreproLabel1)
                    .addComponent(droitsreproCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(localisationLabel1)
                    .addComponent(localisationField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dimensionLabel1)
                    .addComponent(dimensionField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lienfichierLabel1.setBackground(new java.awt.Color(153, 153, 153));
        lienfichierLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        lienfichierLabel1.setForeground(new java.awt.Color(255, 255, 255));
        lienfichierLabel1.setText("Lien vers un fichier (PDF)");

        lienimageLabel1.setBackground(new java.awt.Color(153, 153, 153));
        lienimageLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        lienimageLabel1.setForeground(new java.awt.Color(255, 255, 255));
        lienimageLabel1.setText("Lien vers une image");

        titreField1.setBackground(new java.awt.Color(255, 255, 204));
        titreField1.setColumns(20);
        titreField1.setFont(new java.awt.Font("Times New Roman", 1, 12));
        titreField1.setLineWrap(true);
        titreField1.setRows(5);
        jScrollPane4.setViewportView(titreField1);

        javax.swing.GroupLayout FormulaireLayout = new javax.swing.GroupLayout(Formulaire);
        Formulaire.setLayout(FormulaireLayout);
        FormulaireLayout.setHorizontalGroup(
            FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FormulaireLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(historicpanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, FormulaireLayout.createSequentialGroup()
                            .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(FormulaireLayout.createSequentialGroup()
                                    .addComponent(typedocumentLabel2)
                                    .addGap(18, 18, 18)
                                    .addComponent(typedocCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(FormulaireLayout.createSequentialGroup()
                                    .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(titreLabel1)
                                        .addComponent(imagefilenameLabel1)
                                        .addComponent(sourceLabel1)
                                        .addComponent(auteurLabel1)
                                        .addComponent(dateLabel1))
                                    .addGap(18, 18, 18)
                                    .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)
                                        .addGroup(FormulaireLayout.createSequentialGroup()
                                            .addGap(13, 13, 13)
                                            .addComponent(sourcecombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(FormulaireLayout.createSequentialGroup()
                                            .addComponent(lienvignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(parcourirvignette))
                                        .addComponent(auteurField1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE)
                                        .addGroup(FormulaireLayout.createSequentialGroup()
                                            .addComponent(jDateChooser3, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18)
                                            .addComponent(datetexteLabel2)
                                            .addGap(18, 18, 18)
                                            .addComponent(siecleCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE)
                                .addComponent(resumeLabel1))
                            .addGap(18, 18, 18)
                            .addComponent(CadreVignette1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(589, 589, 589))
                        .addGroup(FormulaireLayout.createSequentialGroup()
                            .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lienimageField1)
                                .addComponent(lienfichierField, javax.swing.GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE))
                            .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(FormulaireLayout.createSequentialGroup()
                                    .addGap(18, 18, 18)
                                    .addComponent(pacouririmageButton1)
                                    .addGap(18, 18, 18)
                                    .addComponent(lienfichierLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(FormulaireLayout.createSequentialGroup()
                                    .addGap(17, 17, 17)
                                    .addComponent(parcourirfichierButton2)
                                    .addGap(18, 18, 18)
                                    .addComponent(lienimageLabel1)))
                            .addGap(625, 625, 625))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        FormulaireLayout.setVerticalGroup(
            FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FormulaireLayout.createSequentialGroup()
                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(FormulaireLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(imagefilenameLabel1)
                            .addComponent(lienvignette1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(parcourirvignette, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(sourceLabel1)
                            .addComponent(sourcecombo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(typedocumentLabel2)
                            .addComponent(typedocCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(titreLabel1)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(FormulaireLayout.createSequentialGroup()
                                .addGap(0, 0, 0)
                                .addComponent(auteurLabel1))
                            .addComponent(auteurField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dateLabel1)
                            .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(datetexteLabel2)
                                    .addComponent(siecleCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(jDateChooser3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(7, 7, 7)
                        .addComponent(resumeLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(FormulaireLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(CadreVignette1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(pacouririmageButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(lienfichierLabel1))
                    .addGroup(FormulaireLayout.createSequentialGroup()
                        .addComponent(lienfichierField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lienimageField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lienimageLabel1)
                            .addComponent(parcourirfichierButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addComponent(historicpanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(11, Short.MAX_VALUE))
        );

        newButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/icongr11.gif"))); // NOI18N
        newButton1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 153, 0), 5, true), "nouvelle fiche", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12), new java.awt.Color(0, 0, 0))); // NOI18N
        newButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nouvelFicheA(evt);
            }
        });

        deleteButton1.setBackground(new java.awt.Color(255, 255, 255));
        deleteButton1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        deleteButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/poubelle.jpg"))); // NOI18N
        deleteButton1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true), "Effacer", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(0, 0, 0))); // NOI18N
        deleteButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteFicheA(evt);
            }
        });

        adminpanel.setBackground(new java.awt.Color(255, 255, 255));
        adminpanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 0, 0), 3, true), "Contrôle et validation", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 3, 14), new java.awt.Color(255, 0, 0))); // NOI18N

        datecorrectionLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
        datecorrectionLabel.setText("Date de correction");

        idcorrecteurLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
        idcorrecteurLabel.setText("Id Correcteur");

        validerfiche.setBackground(new java.awt.Color(255, 255, 255));
        validerfiche.setFont(new java.awt.Font("Times New Roman", 1, 12));
        validerfiche.setForeground(new java.awt.Color(255, 0, 0));
        validerfiche.setText("Valider la Fiche");

        jDateChooser5.setDateFormatString("DD MM YYYY");

        javax.swing.GroupLayout adminpanelLayout = new javax.swing.GroupLayout(adminpanel);
        adminpanel.setLayout(adminpanelLayout);
        adminpanelLayout.setHorizontalGroup(
            adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(adminpanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(adminpanelLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jDateChooser5, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(adminpanelLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(idcorrecteurField, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(validerfiche)
                    .addComponent(datecorrectionLabel)
                    .addComponent(idcorrecteurLabel))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        adminpanelLayout.setVerticalGroup(
            adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(adminpanelLayout.createSequentialGroup()
                .addComponent(datecorrectionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(3, 3, 3)
                .addComponent(jDateChooser5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(idcorrecteurLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(idcorrecteurField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
                .addComponent(validerfiche)
                .addContainerGap())
        );

        saveButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/save.gif"))); // NOI18N
        saveButton1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 0, 0), 2, true), "A Sauvegarder", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(255, 0, 0))); // NOI18N
        saveButton1.setRequestFocusEnabled(false);
        saveButton1.setRolloverEnabled(false);
        saveButton1.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/40px-Light_green_check.svg.png"))); // NOI18N
        saveButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveFicheA(evt);
            }
        });

        javax.swing.GroupLayout CommandesLayout = new javax.swing.GroupLayout(Commandes);
        Commandes.setLayout(CommandesLayout);
        CommandesLayout.setHorizontalGroup(
            CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CommandesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(adminpanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(CommandesLayout.createSequentialGroup()
                        .addGroup(CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(saveButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
                            .addComponent(newButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(CommandesLayout.createSequentialGroup()
                        .addComponent(deleteButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(122, Short.MAX_VALUE))))
        );
        CommandesLayout.setVerticalGroup(
            CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CommandesLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(newButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(saveButton1)
                .addGap(71, 71, 71)
                .addComponent(deleteButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(44, 44, 44)
                .addComponent(adminpanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout ficheAcreerJIFLayout = new javax.swing.GroupLayout(ficheAcreerJIF.getContentPane());
        ficheAcreerJIF.getContentPane().setLayout(ficheAcreerJIFLayout);
        ficheAcreerJIFLayout.setHorizontalGroup(
            ficheAcreerJIFLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ficheAcreerJIFLayout.createSequentialGroup()
                .addComponent(Formulaire, javax.swing.GroupLayout.PREFERRED_SIZE, 723, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Commandes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        ficheAcreerJIFLayout.setVerticalGroup(
            ficheAcreerJIFLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ficheAcreerJIFLayout.createSequentialGroup()
                .addGroup(ficheAcreerJIFLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ficheAcreerJIFLayout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addComponent(Commandes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(Formulaire, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        ficheAcreerJIF.setBounds(10, 10, 950, 560);
        desktop.add(ficheAcreerJIF, javax.swing.JLayeredPane.DEFAULT_LAYER);

        menubar1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        menubar1.setFont(new java.awt.Font("Times New Roman", 1, 14));

        mainmenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/petitlogoCEHA.jpg"))); // NOI18N
        mainmenu.setText("CEHA");

        quitte.setText("Quitter");
        quitte.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quitteActionPerformed(evt);
            }
        });
        mainmenu.add(quitte);

        menubar1.add(mainmenu);

        setJMenuBar(menubar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(desktop, javax.swing.GroupLayout.PREFERRED_SIZE, 1021, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(desktop, javax.swing.GroupLayout.PREFERRED_SIZE, 934, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void quitteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_quitteActionPerformed
        System.exit(0);
}//GEN-LAST:event_quitteActionPerformed

    private void parcourirvignetteparcourirVignetteAction(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_parcourirvignetteparcourirVignetteAction

        String ressourceStrRef = main.getRepvignette().getText();
        JFileChooser chooser = new JFileChooser();
        chooser.setCurrentDirectory(new File(ressourceStrRef));
        chooser.changeToParentDirectory();
        int returnVal = chooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            lienvignette1.setText(chooser.getSelectedFile().getAbsolutePath());
            vignette1.setIcon(new javax.swing.ImageIcon(chooser.getSelectedFile().getAbsolutePath()));

        }
}//GEN-LAST:event_parcourirvignetteparcourirVignetteAction

    private void pacouririmageButton1parcourirLienFichierButton(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacouririmageButton1parcourirLienFichierButton

        JFileChooser chooser = new JFileChooser();
        int returnVal = chooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            lienfichierField.setText(chooser.getSelectedFile().getAbsolutePath());
        }
}//GEN-LAST:event_pacouririmageButton1parcourirLienFichierButton

    private void parcourirfichierButton2parcourirLienImageButton(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_parcourirfichierButton2parcourirLienImageButton
        JFileChooser chooser = new JFileChooser();
        int returnVal = chooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            lienimageField1.setText(chooser.getSelectedFile().getAbsolutePath());
        }
}//GEN-LAST:event_parcourirfichierButton2parcourirLienImageButton

    private void nouvelFicheA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nouvelFicheA
//        ficheEnable(true);

        ceha.Fiche f = new ceha.Fiche();
        entityManager.persist(f);
        list.add(f);
        int row = list.size() - 1;
        cehadata.getMasterTable().setRowSelectionInterval(row, row);
        cehadata.getMasterTable().scrollRectToVisible(cehadata.getMasterTable().getCellRect(row, 0, true));
}//GEN-LAST:event_nouvelFicheA

    private void deleteFicheA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteFicheA
        OkCancelDialog res = new OkCancelDialog("Certain d'effacer ?", this, true);
        if (OkCancelDialog.RET_OK == 1) {
            int[] selected = cehadata.getMasterTable().getSelectedRows();
            List<ceha.Fiche> toRemove = new ArrayList<ceha.Fiche>(selected.length);


            for (int idx = 0; idx
                    < selected.length; idx++) {
                ceha.Fiche f = list.get(cehadata.getMasterTable().convertRowIndexToModel(selected[idx]));
                toRemove.add(f);
                entityManager.remove(f);


            }
            list.removeAll(toRemove);
        }
}//GEN-LAST:event_deleteFicheA

    private void saveFicheA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveFicheA
        if (titreField1.getText().equals("")) {
            new OkDialog("Titre obligatoire !").setVisible(true);
        } else {
            try {
                entityManager.getTransaction().commit();
                entityManager.getTransaction().begin();
            } catch (RollbackException rex) {
                rex.printStackTrace();
                entityManager.getTransaction().begin();
                List<ceha.Fiche> merged = new ArrayList<ceha.Fiche>(list.size());
                for (ceha.Fiche f : list) {
                    merged.add(entityManager.merge(f));
                }
                list.clear();
                list.addAll(merged);
            }

            //            ficheEnable(false);

            //            refreshButton1ActionPerformed(evt);

            vignette1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/fondlogoCEHA.jpg")));
        }
}//GEN-LAST:event_saveFicheA
//
//    /**
//     * @param args the command line arguments
//     */
//    public static void main(String args[]) {
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new CEHAFicheCreation().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel CadreVignette1;
    private javax.swing.JPanel Commandes;
    private javax.swing.JPanel Formulaire;
    private javax.swing.JPanel adminpanel;
    private javax.swing.JTextField auteurField1;
    private javax.swing.JLabel auteurLabel1;
    private javax.swing.JLabel dateLabel1;
    private javax.swing.JLabel datecorrectionLabel;
    private javax.swing.JLabel datedonationLabel1;
    private javax.swing.JLabel datetexteLabel2;
    private javax.swing.JButton deleteButton1;
    private javax.swing.JDesktopPane desktop;
    private javax.swing.JTextField dimensionField1;
    private javax.swing.JLabel dimensionLabel1;
    private javax.swing.JComboBox droitsreproCombo1;
    private javax.swing.JLabel droitsreproLabel1;
    private javax.persistence.EntityManager entityManager;
    private javax.swing.JInternalFrame ficheAcreerJIF;
    private javax.swing.JTextField fondField1;
    private javax.swing.JLabel fondLabel1;
    private javax.swing.JPanel historicpanel1;
    private javax.swing.JTextField idcorrecteurField;
    private javax.swing.JLabel idcorrecteurLabel;
    private javax.swing.JLabel imagefilenameLabel1;
    private com.toedter.calendar.JDateChooser jDateChooser3;
    private com.toedter.calendar.JDateChooser jDateChooser4;
    private com.toedter.calendar.JDateChooser jDateChooser5;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTextField lienfichierField;
    private javax.swing.JLabel lienfichierLabel1;
    private javax.swing.JTextField lienimageField1;
    private javax.swing.JLabel lienimageLabel1;
    private javax.swing.JTextField lienvignette1;
    private java.util.List<ceha.Fiche> list;
    private javax.swing.JTextField localisationField1;
    private javax.swing.JLabel localisationLabel1;
    private javax.swing.JMenu mainmenu;
    private javax.swing.JMenuBar menubar1;
    private javax.swing.JButton newButton1;
    private javax.swing.JButton pacouririmageButton1;
    private javax.swing.JButton parcourirfichierButton2;
    private javax.swing.JButton parcourirvignette;
    private javax.persistence.Query query;
    private javax.swing.JMenuItem quitte;
    private javax.swing.JTextArea resumeArea1;
    private javax.swing.JLabel resumeLabel1;
    private javax.swing.JButton saveButton1;
    private javax.swing.JComboBox siecleCombo1;
    private javax.swing.JLabel sourceLabel1;
    private javax.swing.JComboBox sourcecombo1;
    private javax.swing.JTextArea titreField1;
    private javax.swing.JLabel titreLabel1;
    private javax.swing.JComboBox typedocCombo1;
    private javax.swing.JLabel typedocumentLabel2;
    private javax.swing.JButton validerfiche;
    private javax.swing.JLabel vignette1;
    // End of variables declaration//GEN-END:variables
}
